package cn.msi.question.mapper;

import java.util.List;

import cn.msi.question.domain.Option;
import cn.msi.question.domain.Question;

public interface QuestionMapper {
    int count(Question example);

    int deleteById(Integer questionId);

    int insert(Question record);

    List<Question> selectList(Question example);

    Question selectById(Integer questionId);

    int update(Question record);
    
    int deleteByQuestionId(Integer questionId);
    
    int insertOption(Option option);
    
    List<Question> selectListBYids(String[] ids);
    
    List<Option> selectOptionList(Integer questionId);
}